import request from '@/utils/http';

// 封装所有和用户相关的接口函数
export const loginAPI = ({ account, password }) => {
  // xiaotuxian001
  // 123456

  //   console.log(account, password);
  return request({
    url: '/login',
    method: 'POST',
    data: {
      account,
      password,
    },
  });
};

/**
 *
 * @param {*} param0
 * @returns
 */
export const getLikeListAPI = ({ limit = 4 }) => {
  return request({
    url: '/goods/relevant',
    params: {
      limit,
    },
  });
};
